Tamara\Wp\Plugin\Services\WCTamaraGateway D

Total Complexity 336
Dependencies 30
Dependents 3
Total lines 2,666
Lines of code 1,801
Logical lines of code 800
Comment lines 474
Methods 97
Properties 18

Methods 97

Method Rating Maintainability Complexity Lines of code
tamaraCheckoutSession()
C
31 27 104
initFormFields()
C
21
7 323
populateTamaraShippingAddress()
A
57 17 13
tamaraCancelOrder()
A
42 13 51
getCountryPaymentTypes()
A
45 11 40
adjustTamaraGatewayOnCheckout()
A
46 11 36
captureWcOrder()
A
41 9 57
populateTamaraOrderItems()
A
40 7 62
populateTamaraAddress()
A
53 9 20
populateTamaraRefundOrderItems()
A
42 6 55
onSaveSettings()
A
46 7 39
tamaraCapturePayment()
A
52 8 22
isMethodAvailableFromRemote()
S
53 7 22
validateRequiredFields()
S
61 8 10
getTamaraCaptureId()
S
51 6 26
getTamaraCancelId()
S
51 6 26
getTamaraOrderId()
S
51 6 26
getAvailableSupportedInstalments()
S
46 5 35
renderTamaraPayNowOptionHtml()
S
50 5 28
renderTamaraCountryPaymentTypesHtml()
S
50 5 28
getAvailablePayNowOptions()
S
54 5 20
getAvailablePayLaterOptions()
S
54 5 20
populateTamaraWebhook()
S
59 5 15
registerTamaraWebhook()
S
50 4 29
refinePublicKey()
S
60 5 14
getTamaraFailureUrl()
S
53 4 27
getTamaraCancelUrl()
S
53 4 27
generatePayLaterOptionContent()
S
61 5 11
populateTamaraOrder()
S
49 4 26
generatePayNowOptionContent()
S
61 5 11
getPublicKeyFromRemote()
S
56 4 19
isSingleCheckoutEnabled()
S
56 4 19
countInstalmentPlans()
S
58 4 15
verifyApiParams()
S
56 3 20
deleteTamaraWebhook()
S
56 3 19
init()
S
57 3 16
getCurrentCountryCode()
S
65 4 8
handleTamaraSuccessOrderReceivedPage()
S
61 3 11
createTamaraCheckoutSession()
S
58 2 16
setTamaraIconForPaymentGateway()
S
64 3 9
getWebhookId()
S
69 3 7
getPaymentTypeTitleMapping()
S
59 2 14
initTamaraClient()
S
59 2 14
initBaseAttributes()
S
59 2 14
generatePayInXOptionsContent()
S
59 2 13
getTamaraWebhookUrl()
S
63 2 12
getTamaraIpnUrl()
S
63 2 12
renderPaymentTypeDescription()
S
63 2 11
getErrorMap()
S
54 1 21
populateTamaraMerchantUrl()
S
56 1 19
getPaymentTypeMapping()
S
57 1 19
populateTamaraDefaultDescription()
S
65 2 9
getStoreBaseCountryCode()
S
78 2 3
getDefaultBillingCountryCode()
S
75 2 4
isBeautifyMerchantUrlsEnabled()
S
78 2 3
prepareDebugLogDownloadLink()
S
63 2 10
renderHelpTextsHtml()
S
60 1 15
isCartTotalValid()
S
71 2 5
getTamaraSuccessUrl()
S
68 2 7
processRewriteRules()
S
69 2 7
getPaymentTypes()
S
68 2 7
populateMaxLimit()
S
71 2 5
populateMinLimit()
S
71 2 5
populateTamaraRiskAssessment()
S
60 1 13
initSettingAttributes()
S
60 1 13
populateTamaraConsumer()
S
60 1 13
buildCountryPaymentTypesCacheKeyV2()
S
63 1 11
raiseAdminErrorOnNonSelectedPaymentTypes()
S
73 1 6
updateThisSettingsToOptions()
S
66 1 10
getPayInXTitleAr()
S
79 1 3
updateTamaraCaptureId()
S
75 1 4
updateTamaraOrderId()
S
75 1 4
getCountryCodeToCountryMapping()
S
67 1 8
updateTamaraCancelId()
S
75 1 4
convertAllowedCountryStringValue()
S
75 1 4
isWebhookEnabled()
S
80 1 3
getPayInXTitle()
S
79 1 3
getPayByLaterTitleAr()
S
81 1 3
getPublicKey()
S
82 1 3
getPayByLaterTitle()
S
81 1 3
populateDefaultPayInXTitles()
S
70 1 6
getShippingInfo()
S
69 1 7
raiseAdminError()
S
74 1 5
isSandboxMode()
S
79 1 3
isLiveMode()
S
79 1 3
buildCountryPaymentTypesCacheKey()
S
71 1 6
refreshPaymentTypeCacheV2()
S
77 1 4
refreshPaymentTypeCache()
S
77 1 4
initSettings()
S
81 1 3
processAdminOptions()
S
81 1 3
initTamaraStatus()
S
63 1 9
process_payment()
S
80 1 3
buildTamaraClient()
S
68 1 7
populateTamaraBillingAddress()
S
76 1 4
getCurrencyToCountryMapping()
S
67 1 8
get_option_key()
S
81 1 3
__construct()
S
78 1 4